package com.gxa.ssm251.mapper;

import com.gxa.ssm251.pojo.Cp;
import com.gxa.ssm251.pojo.vo.GetVo;

import java.util.List;

public interface GetVoMapper {
    //	List<Cp> selectAll() throws Exception;
    List<GetVo> selectByPage(int page, int size) throws Exception;

    List<GetVo> searchNameOrPhone(String nameOrphone, Integer page, Integer size) throws Exception;
//	Integer insert(Cp cp) throws Exception;
//	Cp selectById(Integer id) throws Exception ;
//	Integer update1(Integer id, Cp cp) throws Exception;

    List<Cp> selectNotGetCpsByPhone(String phone) throws Exception;


    List<Cp> selectGetCpsByPhone(String phone) throws Exception;


    List<Cp> selectOverExpireCpsByPhone(String phone) throws Exception;


    Integer getCpn(Integer cpId, String phone) throws Exception;
}
